package com.baiytfp.hf.HFDataExchange.action.controller.view;

import com.baiytfp.hf.baiytfp.framework.base.BaseController;
import com.baiytfp.hf.baiytfp.hfutils.HFDBHelper;
import com.baiytfp.hf.baiytfp.hfutils.HFRequest;
import com.baiytfp.hf.HFDataExchange.common.base.anotation.Auth;
import com.baiytfp.hf.HFDataExchange.common.model.base.TableName;
import com.baiytfp.hf.HFDataExchange.common.model.state.TreeType;
import com.baiytfp.hf.HFDataExchange.common.model.vo.BaseUserVO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


@Controller
@RequestMapping("/view/auth")
public class AuthVController extends BaseController {

	

//	@RequestMapping("/cfg")
//	public ModelAndView index(HttpServletRequest request,HttpServletResponse response) throws Exception {
//		ModelAndView mav = new ModelAndView();
//		mav.addObject("objCode", request.getParameter("id"));
//		mav.addObject("objType", request.getParameter("type"));
//		mav.addObject("menu",TreeType.MANAGE_MENU.getKey() );
//		return mav;
//	}

	@RequestMapping("/cfg")
	public ModelAndView index(HttpServletRequest request,HttpServletResponse response) throws Exception {
		ModelAndView mav = new ModelAndView();
		mav.addObject("type", HFRequest.getIstance().getString(request, "type"));
		mav.addObject("id", HFRequest.getIstance().getString(request, "id"));
		mav.addObject("menu",TreeType.MANAGE_MENU.getKey() );
		return mav;
	}

	



}
